package gui.ajuda;

import java.io.IOException;
import javax.microedition.lcdui.*;
import recados.Recados;

public class Smiles extends Form implements CommandListener {

    private Command cmdVoltar;

    public Smiles(){
        super("Smiles");
        
        cmdVoltar=new Command("Voltar", Command.BACK, 0);
        addCommand(cmdVoltar);
        setCommandListener(this);
        
        try {
            ImageItem odio=new ImageItem(".odio.", Image.createImage("/smiles/odio.png"), Item.LAYOUT_LEFT|Item.LAYOUT_NEWLINE_AFTER, ".odio.");
            append(odio);
            ImageItem feliz=new ImageItem(".feliz.", Image.createImage("/smiles/happy.png"), Item.LAYOUT_LEFT|Item.LAYOUT_NEWLINE_AFTER, ".feliz.");
            append(feliz);
            ImageItem choro=new ImageItem(".choro.", Image.createImage("/smiles/choro.png"), Item.LAYOUT_LEFT|Item.LAYOUT_NEWLINE_AFTER, ".choro.");
            append(choro);
        } catch (IOException ex) {
        }
        
    }
    public void commandAction(Command c, Displayable d) {
        if (c == cmdVoltar) {
            Recados.getInstance().setCurrent(new Ajuda());
        }
    }
}
